import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/home/index.vue'
import Main from '../layout/index.vue'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        component: Main,
        children: [
            {
                path: '/',
                component: Home,
            },
            {
                path: '/order',
                component: () => import('../views/order/index.vue')
            },
            {
                path: '/work',
                component: () => import('../views/work/index.vue')
            }
        ]
    }
]

const router = createRouter({
    routes,
    history: createWebHashHistory()
})

export default router